/**
 * Table.java
 * 卢晓峰
 * Email：lxf9601@gmail.com
 * QQ：297051898
 * Created by 2010-6-6
 */
package com.autoabacus.core.config.component;

import java.util.LinkedHashMap;

import com.autoabacus.core.config.protocol.TableProtocol.Type;

/**
 * 表结构定义
 * @author 卢晓峰
 */
public class Table {
	
	/** 表格名称 */
	private String name;
	
	/** 表格别名 */
	private String alias;
	
	/** 表格类型 */
	private Type type = Type.SQL;
	
	/** 模板名字 */
	private String templateName;
	
	/** 所有字段 */
	private LinkedHashMap<String, Field> fields;
	
	/** 所有指令 */
	private LinkedHashMap<String, Command> commands;
	
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAlias() {
		return alias;
	}

	public void setAlias(String alias) {
		this.alias = alias;
	}

	public Type getType() {
		return type;
	}

	public void setType(Type type) {
		this.type = type;
	}

	public LinkedHashMap<String, Field> getFields() {
		return fields;
	}

	public void setFields(LinkedHashMap<String, Field> fields) {
		this.fields = fields;
	}

	public LinkedHashMap<String, Command> getCommands() {
		return commands;
	}

	public void setCommands(LinkedHashMap<String, Command> commands) {
		this.commands = commands;
	}

	public String getTemplateName() {
		return templateName;
	}

	public void setTemplateName(String templateName) {
		this.templateName = templateName;
	}
	
}
